package com.bye.xiaomi_mall.mapper;

import java.util.List;
import com.bye.xiaomi_mall.domain.TdOrderDetail;

/**
 * 订单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-16
 */
public interface TdOrderDetailMapper 
{
    /**
     * 查询订单详情
     * 
     * @param id 订单详情主键
     * @return 订单详情
     */
    public TdOrderDetail selectTdOrderDetailById(Long id);

    /**
     * 查询订单详情列表
     * 
     * @param tdOrderDetail 订单详情
     * @return 订单详情集合
     */
    public List<TdOrderDetail> selectTdOrderDetailList(TdOrderDetail tdOrderDetail);

    /**
     * 新增订单详情
     * 
     * @param tdOrderDetail 订单详情
     * @return 结果
     */
    public int insertTdOrderDetail(TdOrderDetail tdOrderDetail);

    /**
     * 修改订单详情
     * 
     * @param tdOrderDetail 订单详情
     * @return 结果
     */
    public int updateTdOrderDetail(TdOrderDetail tdOrderDetail);

    /**
     * 删除订单详情
     * 
     * @param id 订单详情主键
     * @return 结果
     */
    public int deleteTdOrderDetailById(Long id);

    /**
     * 批量删除订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTdOrderDetailByIds(Long[] ids);

    List<TdOrderDetail> selectOrderDetail(String orderCode);

}
